package com.text.day2_2;

public class BiShou extends Tools{
    private double baoJi;

    public BiShou(String name,double attack, double baoJi) {
        super(name, "匕首",attack,"背刺");
        this.baoJi = baoJi;
    }

    public BiShou(double baoJi) {
        this.baoJi = baoJi;
    }

    public BiShou(String name, String type, double attack, String jc, double baoJi) {
        super(name, type, attack, "背刺");
        this.baoJi = baoJi;
    }

    public double getBaoJi() {
        return baoJi;
    }

    public void setBaoJi(double baoJi) {
        this.baoJi = baoJi;
    }

    @Override
    public String toString() {
        return "BiShou{" +
                "name='" + getName() + '\'' +
                ", type='" + getType() + '\'' +
                ", attack=" + getAttack() +
                ", jc='" + getJc() + '\'' +
                ", baoJi=" + baoJi +
                '}';
    }
}
